package com.qf.boot.controller;

import com.qf.boot.properties.WechartProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Value("${server.port}")
    private Integer port;

    @Autowired
    private WechartProperties props;

    @GetMapping("/test")
    public String test(){
//        Hello Maven SpringBoot! server: 8080
        return "Hello Maven SpringBoot!";
    }


}
